<?Lassoscript
// Last modified 11/30/09 by Eric Landmann

// FUNCTIONALITY
// Displays the left navbar

// CHANGE NOTES
// 4/17/09
// Version 1.0
// 11/30/09
// Worked on admin area

// This hack saves the debug status, turns off the debugging for the navbar, then retstores it at the end of the navbar
	Var:'DebugStatus' = $svDebug;
	Var:'svDebug' = 'N';
?>
<!--NAVBAR START-->
<table>
	<tr>
		<td width="134" align="left">
			<div id="niftysidebar" class="niftysidebar">
				<h2 onclick="ToggleDisplay('user')">User</h2>
				<div id="user">
					<p class="ghost">
<?Lassoscript
// Display logged-in user info
If: (Var:'SessionExists') == 'Y';
	'\t\t\t\t\t\t<font color="#6699FF">' (Var:'svAdmin_FName') '&nbsp;' (Var:'svAdmin_LName') '</font><br>\n';
	'\t\t\t\t\t\t<font color="#6699FF">Privs: Admin</font><br>\n';
	// Log Out link
	'\t\t\t\t\t\t<a href="http://'($svDomain)'/admin/logout.lasso?Action=logout" class="menuBoxContentLink"><strong>Log Out</strong></a>\n';
Else;
	'\t\t\t\t\t\t<font color="#6699FF">Privs: Visitor</font><br>\n';
	// Log In link
	'\t\t\t\t\t\t<a href="http://'($svDomain)'/admin/login.lasso" class="menuBoxContentLink"><strong>Log In</strong></a>\n';
/If;
?>
					</p><!-- 32 -->
				</div>
<?Lassoscript
// Don't display if they are not logged in
If: (Var:'SessionExists') != '';
?>
<!-- Admin START -->
				<h2 onclick="ToggleDisplay('admin')">Admin</h2>
				<div id="admin">
					<p class="ghost">
<?Lassoscript
	// Manage Posts
?>
						<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Post" class="menuBoxContentLink"><strong>Posts</strong></a><!-- 
<br>
						&nbsp;<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Post" class="menuBoxContentLink">Edit</a>
 -->
					</p>
					<p class="ghost">
<?Lassoscript
	// Manage Topics
?>
						<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Topic" class="menuBoxContentLink"><strong>Topics</strong></a><br>
				<!-- &nbsp;<a href="http://[$svDomain]/admin/setup_add.lasso?New=Y&Datatype=Topic" class="menuBoxContentLink">Add</a>&nbsp;&nbsp;| <a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Topic" class="menuBoxContentLink">Edit</a> -->
					</p>
					<p class="ghost">
<?Lassoscript
	// Manage Forums
?>
						<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Forum" class="menuBoxContentLink"><strong>Forums</strong></a><br>
				&nbsp;<a href="http://[$svDomain]/admin/setup_add.lasso?New=Y&Datatype=Forum" class="menuBoxContentLink">Add</a>&nbsp;&nbsp;| <a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Forum" class="menuBoxContentLink">Edit</a>
					</p>
					<p class="ghost">
<?Lassoscript
	// Manage Users
?>
						<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=User" class="menuBoxContentLink"><strong>Users</strong></a><br>
				&nbsp;<a href="http://[$svDomain]/admin/setup_add.lasso?New=Y&Datatype=User" class="menuBoxContentLink">Add</a>&nbsp;&nbsp;| <a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=User" class="menuBoxContentLink">Edit</a>
					</p>
					<p class="ghost">
<?Lassoscript
	// Manage Customer Info
?>
						<a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Info" class="menuBoxContentLink"><strong>Customer Info</strong></a><br>
				&nbsp;<a href="http://[$svDomain]/admin/setup_add.lasso?New=Y&Datatype=Info" class="menuBoxContentLink">Add</a>&nbsp;&nbsp;| <a href="http://[$svDomain]/admin/setup_edit.lasso?Datatype=Info" class="menuBoxContentLink">Edit</a>
					</p>
				</div><!-- 129 -->
[/If]
<!-- Admin END -->
			</div><!-- 134 -->
		</td>
	</tr>
</table>
<!--NAVBAR END-->
[Var:'svDebug' = Var:'DebugStatus']